package com.qdcl.mart.base;


import org.apache.ibatis.logging.Log;
import org.apache.ibatis.logging.LogFactory;

public class GenericController {
	private static final Log log = LogFactory.getLog(GenericController.class);
	public static final int DEBUG =0;
	public static final int INFO =1;
	public static final int WARN =2;
	public static final int ERROR =3;
	
	private static final String[] loggerLevel = {"调试","信息","警告","错误"};
	/**
	 * 记录日志
	 * @param message
	 * @param level
	 * @param type
	 */
	public void saveLogger(String message, int level, String type){
		if(level >= loggerLevel.length){
			return;
		}
		log.debug("系统日志,级别【" +loggerLevel[level]+"】：" + message);
	}
}